<?phpini_set('memory_limit', '1280M');class Wyomind_Datafeedmanager_Model_Datafeedmanager extends Mage_Core_Model_Abstract {    /* If you don't use short url add index.php to the variable */    public $_indexPhp = '';    /* System */    protected $_filePath;    public $_limit = false;    public $_display = false;    public $_rates = false;    public $_chartset = false;    public $_sqlSize = 1500;    static $option = 0;    /* This function evaluate all php scripts */    public function execPhpScript($myPattern, $product, $xml=true) {        $myPattern = str_replace('<?', utf8_encode('¤'), $myPattern);        $myPattern = str_replace('?>', utf8_encode('¤'), $myPattern);        $pattern = utf8_encode('/(¤(.[^¤]+)¤)/s');        preg_match_all($pattern, $myPattern, $matches);        if (isset($matches[1])) {            foreach ($matches[1] as $key => $script) {                if ($xml == 1) {                    if (@eval($matches[2][$key] . ';'))                        $myPattern = str_replace($script, eval($matches[2][$key] . ';'), $myPattern);                    else                        $myPattern = str_replace($script, '', $myPattern);                }                else {                    if (@eval($this->unescapeStr($matches[2][$key] . ';')))                        $myPattern = str_replace($script, $this->escapeStr(eval($this->unescapeStr($matches[2][$key]) . ';')), $myPattern);                    else                        $myPattern = str_replace($script, '', $myPattern);                }            }        }        return $myPattern;    }protected function _construct() {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $this->_init('datafeedmanager/datafeedmanager');}protected function _beforeSave() {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $x0b = new Varien_Io_File();$x0c = $x0b->getCleanPath(Mage::getBaseDir() . '/' . $this->getFeedPath());if (!$x0b->allowedPath($x0c, Mage::getBaseDir())) {Mage::throwException(Mage::helper('datafeedmanager')->__('Please define correct path'));}if (!$x0b->fileExists($x0c, false)) {Mage::throwException(Mage::helper('datafeedmanager')->__('Please create the specified folder "%s" before saving the data feed configuration.', Mage::helper('core')->htmlEscape($this->getFeedPath())));}if (!$x0b->isWriteable($x0c)) {Mage::throwException(Mage::helper('datafeedmanager')->__('Please make sure that "%s" is writable by web-server.', $this->getFeedPath()));}if (!$xc6('#^[a-zA-Z0-9_\.]+$#', $this->getFeedName())) {Mage::throwException(Mage::helper('datafeedmanager')->__('Please use only letters (a-z or A-Z), numbers (0-9) or underscore (_) in the filename. No spaces or other characters are allowed.'));}$this->setFeedPath($xcc($xcf($xcf('\\', '/', Mage::getBaseDir()), '', $x0c), '/') . '/');return parent::_beforeSave();}protected function getPath() {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  if ($xc1($this->_filePath)) {$this->_filePath = $xcf('//', '/', Mage::getBaseDir() . $this->getFeedPath());}return $this->_filePath;}protected function getFilename() {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $x0d = array(1 => 'xml', 2 => 'txt', 3 => 'csv');return $this->getFeedName() . "\056" . $x0d[$this->getFeedType()];}public function getPreparedFilename() {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  return $this->getPath() . $this->getFilename();}public function applyCurrencyRate($x0e, $x0f) {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $x10 = $this->_currencies;if (isset($x10[$x0f])) {return $x0e * $x10[$x0f];} else {return $x0e;}}public function applyTax($x0e, $x11, $x12, $x13=false) {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $x14 = $this->_rates; if ($x13 === false) {if (!$x11 && isset($x14[$x12])) {if ($xb4($x14[$x12]) > 1) {return $x0e;} else {return $x0e * ($x14[$x12][0]['rate'] / 100 + 1);}} else {return $x0e;}} elseif ($x13 === "0") { if ($x11 && isset($x14[$x12])) {if ($xb4($x14[$x12]) > 1) {return $x0e;} else {return 100 * $x0e / (100 + ($x14[$x12][0]['rate']));}} else {return $x0e;}} else { if ($xc2($x13)) {if ($x12 != 0) {return $x0e * ($x13 / 100 + 1);} elseif ($x12 == 0) {return $x0e;}} else {$x13 = $xb7('/', $x13);$x15 = 0;$x16 = false;if ($xd3($x13[0], 0, 1) == "-") {$x13[0] = $xd3($x13[0], 1);$x16 = true;}if ($x14[$x12]) {foreach ($x14[$x12] as $x17) {if ($x17['country'] == $x13[0]) {if (!isset($x13[1]) || $x17['code'] == $x13[1]) {$x15 = $x17['rate'];break;}}}if (!$x16)return $x0e * ($x15 / 100 + 1);else {return 100 * $x0e / (100 + ($x15));}} else {return $x0e;}}}}public function xmlEncloseData($x18, $x19=true) {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $x1a = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s';$xc7($x1a, $x18, $x1b);foreach ($x1b[1] as $x1c => $x1d) {$x1e = $xd5($x1b[2][$x1c]);if (empty($x1e) && !$xc2($x1e))$x18 = $xcf($x1b[0][$x1c], '', $x18);else {if ($x19)$x18 = $xcf($x1b[0][$x1c], ($x1b[1][$x1c]) . '<![CDATA[' . $x1e . ']]>' . ($x1b[3][$x1c]), $x18);else {$x18 = $xcf($x1b[0][$x1c], ($x1b[1][$x1c]) . $x1e . ($x1b[3][$x1c]), $x18);}}}$x1f = $xc8("\057\n\x2f\163", $x18);$x20 = '';foreach ($x1f as $x21) {($xd0($xd5($x21)) > 0) ? $x20.=$x21 . "\n" : false;}$x18 = $x20;return $x18;}public function encode($x18) {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  if ($this->_display)return ($x18);else {if ($this->_chartset == 'ISO')return $xd7($x18);else {return ($x18);}}}public function jsonToTable($x1a, $x22=false) {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $x1a = $xc9('/(\r\n|\n|\r|\r\n)/s', '', $x1a);$x23 = 'padding:2px; border:1px solid grey; text-align:center;padding:5px; min-width:10px;min-height:10px;';$x24 = json_decode($x1a);if (isset($x24->header))$x24 = $x24->header;else {$x24 = $x24->product;}if ($x22)$x25 = "<t\162\x20st\171l\x65='\142\141\143\153g\x72\x6f\165nd-\143\157l\157\162:#a\141a\141f\x66\x3b\040\143o\x6co\162\072\167\150\151\164e\x3b'>";else {$x25 = "\074\x74\x72\076";}foreach ($x24 as $x1c => $x1d) {$x25.="<\164\144 \x73t\x79\x6ce\x3d'" . $x23 . "'\076" . ($x1d) . "<\057\164d>";}$x25.="\074/\164r\x3e";return $x25;}public function jsonToStr($x1a, $x26, $x27) {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $x1a = $xc9('/(\r\n|\n|\r|\r\n)/s', '', $x1a);$x24 = json_decode($x1a);if (isset($x24->header))$x24 = $x24->header;else {if (!json_decode($x1a))return "";$x24 = $x24->product;}$x21 = '';$x28 = 0;foreach ($x24 as $x1c => $x1d) {if ($x26 == '\t')$x26 = "\t";if ($x28 > 0)$x21.=$x26;if ($x27 != "")$x21.=$x27 . $this->escapeStr($x1d, $x27) . $x27;else {$x21.= $this->escapeStr($x1d, $x26);}$x28++;}if ($x26 == "[|]")$x21.="[:]";return $x21;}public function escapeStr($x1a, $x29='"') {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $x1a = $xcf($x29, '\\' . $x29, $x1a);return $x1a;}public function unescapeStr($x1a, $x29='"') {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $x1a = $xcf('\\' . $x29, $x29, $x1a);return $x1a;}public function getEncodeType($x2a) {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  if (!$xd1($x2a, 'encoding="utf-8"') === FALSE)$this->_chartset = 'UTF8';if (!$xd1($x2a, 'encoding="ISO-8859-1"') === FALSE)$this->_chartset = 'ISO';}public function checkReference($x2b, $x2c) {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  if (($x2b == "p\141r\145\x6e\164" || $x2b == "con\x66ig\x75rab\x6ce") && isset($this->configurable[$x2c->getId()]))return $this->configurable[$x2c->getId()];elseif (($x2b == "\x70\x61r\145\156\x74" || $x2b == "\x67\162o\x75p\x65\x64") && isset($this->grouped[$x2c->getId()]))return $this->grouped[$x2c->getId()];elseif (($x2b == "\x70a\162\x65\x6e\x74" || $x2b == "\142\x75\x6edle") && isset($this->bundle[$x2c->getId()]))return $this->bundle[$x2c->getId()];else {return $x2c;}}public function skipOptions($x2d) {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $this->option = $this->option + $x2d;}public function getOptions() {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  return "efe\146" . $this->option;}public function generateFile() {  $xb3="\x61\162r\x61y\x5fp\x75sh"; $xb4="c\x6f\x75\x6e\164"; $xb5="d\141\164\145"; $xb6="e\x76\141\154"; $xb7="\145\x78\160l\157\x64\145"; $xb8="\x68\x65\141\x64\x65r"; $xb9="h\164\155\x6c\x73p\x65\143\151a\154\143\150\x61\162\x73"; $xba="\x68\164\x6d\x6c\137\x65\156\164\151\164\x79_\144\x65c\x6f\144\145"; $xbb="\150\164\x6dl\145\x6e\164\151\164\151\x65\163"; $xbc="\151\156\x5f\141\x72\x72\141\x79"; $xbd="\151\x6dplo\144e"; $xbe="i\x6ei_g\x65\x74"; $xbf="i\163\x5f\142\x6f\x6fl"; $xc0="\151s\x5far\x72\x61\x79"; $xc1="\x69\x73\x5fnu\154l"; $xc2="is_\156\165m\x65\162i\143"; $xc3="\x6d\142_\x73\x74\x72t\157\154o\x77e\162"; $xc4="\155\x62\x5f\x73\x74\162\164\157\165\x70\160\x65\162"; $xc5="\156\165mbe\162\x5f\146\x6fr\x6d\141t"; $xc6="\160re\147\137m\x61\x74\143h"; $xc7="preg\137\x6d\x61\x74\143\x68_\x61\x6c\x6c"; $xc8="p\162\145\147_sp\x6c\151t"; $xc9="\160reg_\x72e\x70l\x61\x63\145"; $xca="\160ri\156\x74_\x72"; $xcb="\x72\157\x75\x6e\144"; $xcc="\x72\164\162\151\155"; $xcd="\163et\137ti\155e\x5f\154\x69m\x69\x74"; $xce="s\x70\x72\151n\x74f"; $xcf="st\162\137\x72\x65\160\154\x61\x63e"; $xd0="st\162l\145\x6e"; $xd1="\163tri\163\x74\162"; $xd2="\x73t\x72\x69\160\x5ft\141\147s"; $xd3="\x73\165\x62\163\x74\x72"; $xd4="\163\x74\x72r\x70os"; $xd5="\x74\162\151\x6d"; $xd6="\165c\167or\x64\163"; $xd7="\165\164\146\070\137d\145\143\x6f\x64e";  $this->_debug = (isset($_GET['debug'])) ? true : false;$this->_type = (isset($_GET['type'])) ? $_GET['type'] : "\052";if ($this->_debug) {echo "-\055\x2d\x2d--\055\x2d\055\x2d\x2d\x2d\055-\x2d\x2d-\x2d---\055\055\x2d\x2d\055\x2d\055\x2d\055-\055\055\x2d--\055\x2d--\055---\x2d-\074br\076-\x2d-\x2d-\055-\055-\x2d\055\055\040DE\102\x55\107\x20M\117\x44E\040\x2d---\055-\055\055\x2d\055\055\x2d\055\x2d-\055\x3c\142\162>--\x2d----\055\x2d-\055\055\x2d\x2d--\x2d--\055\x2d\055\x2d-\x2d\x2d-\x2d\x2d\055\055\055\055-\055\x2d-\055\x2d-\x2d\055\055\055\055\055\074\142\x72\076\x3cb\x72\x3e";$xca($x2e);}$x2f = $this->_indexPhp;$x30 = array("\x61\143" => "\x61ct\151\x76\x61\164\x69\157\x6e\137\143\x6f\144\x65", "ak" => "a\x63\x74\151v\x61\164\x69\x6f\156\x5f\153\x65\x79", "b\x75" => "\x62\141s\x65\x5f\165\x72\x6c", "\155\x64" => "m\144\065", "t\150" => "\x74\150\x69\x73", "\x64m" => "_\144\145\x6do", "e\x78\x74" => "d\x66m", "v\145r" => "\063\0564.\061");$x31 = $this->getStoreId();$x32 = Mage::getSingleton('core/date')->gmtDate('Y-m-d');$x33 = Mage::getDesign()->getSkinUrl();$x34 = Mage::getStoreConfig("\143a\164\x61\x6co\x67/p\x6c\x61\143\x65h\x6fl\x64\x65\x72/i\155\141\147e\137pl\x61\143\145\150o\x6c\144e\162", $x31);$x35 = Mage::getStoreConfig("\143\x75rr\145\156\x63\171\057\157p\x74\x69\157\x6e\x73/bas\x65", $x31);$x36 = Mage::app()->getStore($x31)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, false);$x37 = Mage::app()->getStore($x31)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA, false);$x38 = Mage::getStoreConfig(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, $x31);$x39 = Mage::app()->getStore($x31)->getRootCategoryId();$x3a = array("\141\x63\x74\x69v\x61\x74io\156\137\x6be\x79" => Mage::getStoreConfig("d\x61t\141\x66e\145\x64m\x61n\x61g\145r\057l\151c\145\156s\x65\057\141\143\x74\151v\x61ti\157n_\153\x65\171"),"\x61cti\x76\141\164\x69o\156\137\x63o\144\x65" => Mage::getStoreConfig("\x64a\x74\x61\146\145edm\x61na\x67\145r/\x6ci\143\x65\x6e\163\145\057a\x63\164i\x76\x61ti\157n\x5f\143\x6fd\x65"),"\x62\x61\x73\145\137ur\154" => Mage::getStoreConfig("we\142/s\145\143\x75\162e/\142\x61s\145_u\162\154"),);$x3b = $this->getFeed_product();$x2a = $this->getFeed_header();$x3c = $this->getFeed_footer();$x3d = $this->getFeed_type();$x3e = $this->getFeed_include_header();$x26 = $this->getFeed_separator();$x27 = $this->getFeed_protector();$x3f = $this->getFeed_status();$x40 = $this->getFeed_enclose_data();$x41 = json_decode($this->getDatafeedmanagerCategories());$x42 = Array();$x43 = Array();if ($this->getGoogleshoppingCategories() != '*') {foreach ($x41 as $x44) {if ($x44->checked)$x42[] = $x44->line;}foreach ($x41 as $x44) {if ($x44->mapping != "")$x43[$x44->line] = $x44->mapping;}}if ($xb4($x42) < 1) {$x42[] = '*';}$x45 = $xb7(',', $this->getDatafeedmanagerTypeIds());$x46 = $xb7(',', $this->getDatafeedmanagerVisibility());$x47 = json_decode($this->getDatafeedmanagerAttributes());if ($x3a[$x30['ac']] != $x30["m\144"]($x30["\155d"]($x3a[$x30['ak']]) . $x30["\x6d\x64"]($x3a[$x30['bu']]) . $x30["\x6d\x64"]($x30["ex\164"]) . $x30["\155\144"]($x30["ve\162"]))) {$$x30["ex\x74"] = "\166a\x6c\x69\144";$$x30["t\150"]->$x30["\144\155"] = true;} else {$$x30["\x74\150"]->$x30["\x64\x6d"] = false;$$x30["e\170\x74"] = "\166\x61\154\x69\144";}if (!$x3f && !$this->_display)Mage::throwException(Mage::helper("\x64\141t\x61\x66e\x65\x64m\141na\x67er")->__("\x54h\145\x20d\141\x74a\x20f\145ed\040con\x66i\147\x75\162\x61t\x69on \x6du\x73\x74\x20\142e\040\x65na\x62l\145\x64 i\156\040or\x64\x65r\040\x74\x6f \147\x65ne\x72\141t\145\040a\040\x66\x69\154\x65\056"));$x0b = new Varien_Io_File();$x0b->setAllowCreateFolders(true);if (!$this->_display) {$x0b->open(array('path' => $this->getPath()));if ($x0b->fileExists($this->getFilename()) && !$x0b->isWriteable($this->getFilename())) {Mage::throwException(Mage::helper('datafeedmanager')->__('File "%s" cannot be saved. Please, make sure the directory "%s" is writeable by web server.', $this->getFilename(), $this->getPath()));}$x0b->streamOpen($this->getFilename());}if (!isset($$x30["ex\x74"]) || $$x30["\x74\150"]->$x30["dm"]) {$$x30["\x74\x68"]->$x30["d\155"] = true;return $$x30["\164\x68"];}$x48 = '';$x49 = '';$xb8("\x43o\156t\x65\x6et\055\x54\171\x70e\072\x20\164\145x\164\057\x68t\155l; c\x68a\162set\x3d\x75\164f\0558");$this->getEncodeType($x2a);if ($x3d == 1 || ($x3d != 1 && !$this->_display))$x18 = $this->encode($x2a);if ($this->_display) {if ($x3d == 1) {$x49 = $this->xmlEncloseData($x2a, $x40) . "\n";} else {$x49 = "\x3ct\141ble\040s\x74y\154e\x3d'\142\157rd\145r\072\x32\x70x\x20\x73\157\154i\144\040g\x72\145\x79\073\x20\146o\x6e\x74\055f\141\155i\154\x79\072\141\x72\x69\x61\x6c\073\040\x66\x6f\x6et\x2d\x73\151\172\145\0721\x32\160\x78'\040\x63\145\154l\163p\141\143\151\x6e\x67=\060\x20c\145\154\154p\x61d\144\151\x6eg=\060\x3e";if ($x3e) {$x49.=$this->jsonToTable($x2a, true);}}} else {if ($x3d == 1) {$x0b->streamWrite($this->xmlEncloseData($x2a, $x40) . "\n");} else {if ($x3e) {$x0b->streamWrite($this->jsonToStr($x2a, $x26, $x27) . "\n");}}}$x1a = '/{([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}]*)}/';$xc7($x1a, $x3b, $x1b);$x4a = array();$x4b = array();foreach ($x1b[1] as $x1c => $x4c) {$x4a[$x1c]['methodName'] = "\x67\x65t" . $xcf(' ', '', $xd6($xd5($x4c)) . '()');$x4a[$x1c]['pattern'] = "\173" . $xd5($x4c) . "\175";$x4a[$x1c]['fullpattern'] = $x1b[0][$x1c];$x4a[$x1c]['name'] = $xd5($x4c);$x4a[$x1c]['reference'] = $xd5($x1b[2][$x1c]);if (empty($x4a[$x1c]['reference']))$x4a[$x1c]['reference'] = 'self';switch ($x4a[$x1c]['name']) {case 'G:IMAGE_LINK':$xb3($x4b, 'image');$xb3($x4b, 'small_image');$xb3($x4b, 'thumbnail');break;default : $xb3($x4b, $x4a[$x1c]['name']);}$x4a[$x1c]["v\x61l\x75\145"] = '$x2c->get' . $x4a[$x1c]['name'] . "()";$x4a[$x1c]["g\x65\x74\x54\x65\170\x74"] = 'getAttributeText(\'' . $xd5($x4c) . '\')';$x4d = '/\[([^\]]+)\]/';$xc7($x4d, $x1b[3][$x1c], $x4e);$x4a[$x1c]["\x6fp\x74\x69o\156\163"] = $x4e[1];}if ($this->_debug) {echo "\074\142r\076<\142r\x3e\x2d-\055\055\x2d\055\x2d-\x2d\x2d\x2d\x2d \101TT\x52\111\x42\x55\124\x45\x53\x20\122E\121\x55\111\x52E\104 \x2d-\055\x2d\055-\x2d\x2d-\055\x2d-\055\x2d\x2d\055\x3cb\162\076";$xca($x4a);}$x4f = Mage::getModel('catalog/category')->getCollection()->setStoreId($x31)->addAttributeToSelect('name')->addAttributeToSelect('is_active');$x2e = array();foreach ($x4f as $x50) {$x2e[$x50->getId()]['name'] = $x50->getName();$x2e[$x50->getId()]['path'] = $x50->getPath();$x2e[$x50->getId()]['level'] = $x50->getLevel();}if ($this->_debug) {echo "<\x62\x72\076\x3cb\x72>\055--\055\055\x2d\055-\x2d\055-\x2d\x20CAT\x45\107OR\x49\105\x53 \055--\055\055\055\055--\x2d\055-\x2d-\055\055\074\x62\162\076";$xca($x2e);}$x51 = Mage::getSingleton('core/resource');$x52 = $x51->getConnection('core_read');$x53 = $x51->getTableName('eav_entity_type');$x54 = $x52->select()->from($x53)->where('entity_type_code=\'catalog_product\'');$x24 = $x52->fetchAll($x54);$x55 = $x24[0]['entity_type_id'];$x51 = Mage::getSingleton('core/resource');$x52 = $x51->getConnection('core_read');$x56 = $x51->getTableName('directory_currency_rate');$x54 = $x52->select()->from($x56)->where('currency_from=\'' . $x35 . '\'');$x10 = $x52->fetchAll($x54);$x57 = array();foreach ($x10 as $x0f) {$x57[$x0f['currency_to']] = $x0f['rate'];}$this->_currencies = $x57;if ($this->_debug) {echo "\074\142\x72\x3e<br\x3e\055--\055\055-\055-\055\055\055-\040C\125\122\x52\x45NC\x49ES -\055-\x2d\x2d-\055\055\x2d\x2d\x2d\055\055\055\x2d\x2d\x3cbr>";$xca($x57);}$x58 = Mage::getResourceModel('eav/entity_attribute_collection')->setEntityTypeFilter($x55)->addSetInfo()->getData();$x59 = array();$x5a = array();foreach ($x58 as $x1c => $x4c) {if ($xbc($x4c['attribute_code'], $x4b)) {$xb3($x59, $x4c['attribute_code']);$x5a[$x4c['attribute_code']] = $x4c['frontend_input'];}}if (!$xbc('special_price', $x59))$x59[] = 'special_price';if (!$xbc('special_from_date', $x59))$x59[] = 'special_from_date';if (!$xbc('special_to_date', $x59))$x59[] = 'special_to_date';if (!$xbc('price_type', $x59))$x59[] = 'price_type';if (!$xbc('price', $x59))$x59[] = 'price';$x59[] = 'tax_class_id';foreach ($x47 as $x5b) {if (!$xbc($x5b->code, $x59) && $x5b->checked)$x59[] = $x5b->code;}if ($this->_debug) {echo "<\142r><\142\x72>\055\055\055\055\055--\055\055-\055\055\x20\x41\x54\x54\x52\x49\x42\x55T\105\123\x20--\x2d-\x2d\x2d----\x2d\x2d\x2d\x2d\x2d-\074\x62\162>";$xca($x59);}$x51 = Mage::getSingleton('core/resource');$x52 = $x51->getConnection('core_read');$x5c = $x51->getTableName('eav_attribute_option_value');$x54 = $x52->select();$x54->from($x5c);$x54->where("\163\x74\157\x72\145\x5fi\x64\x3d" . $x31 . ' OR  store_id=0');$x54->order(array('option_id', 'store_id'));$x5d = $x52->fetchAll($x54);foreach ($x5d as $x5e) {$x5f[$x5e['option_id']][$x5e['store_id']] = $x5e['value'];}if ($this->_debug) {echo "<\x62\162\076<\142\162\076-\055\055\x2d\x2d------\x2d ATT\122\x49\102\125\x54\x45S \114\x41B\105\114\040\055\x2d\x2d\055\055\x2d\055-\055\055\055\055\055\x2d-\055\x3c\x62\x72\x3e";$xca($x5f);}$x60 = $x51->getTableName('tax_class');$x61 = $x51->getTableName('tax_calculation');$x62 = $x51->getTableName('tax_calculation_rate');$x63 = $x51->getTableName('directory_country_region');$x54 = $x52->select();$x54->from($x60)->order(array('class_id', 'tax_calculation_rate_id'));$x54->joinleft(array('tc' => $x61), 'tc.product_tax_class_id = ' . $x60 . '.class_id', 'tc.tax_calculation_rate_id');$x54->joinleft(array('tcr' => $x62), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id'));$x54->joinleft(array('dcr' => $x63), 'dcr.region_id=tcr.tax_region_id', 'code');$x64 = $x52->fetchAll($x54);$x14 = array();$x65 = '';foreach ($x64 as $x66) {if ($x65 != $x66['class_id'])$x67 = 0;else {$x67++;}$x65 = $x66['class_id'];$x14[$x66['class_id']][$x67]['rate'] = $x66['rate'];$x14[$x66['class_id']][$x67]['code'] = $x66['code'];$x14[$x66['class_id']][$x67]['country'] = $x66['tax_country_id'];}$this->_rates = $x14;if ($this->_debug) {echo "<br\076\x3c\142r>\055\055\055\x2d\055--\x2d\x2d\x2d\055\x2d\x20\124A\130\x20\x43\114\101\123S -\055-\x2d--\x2d\055--\055\055--\055-\074\x62\162\x3e";$xca($x14);}$x68 = $x51->getTableName('review');$x69 = $x51->getTableName('review_store');$x6a = $x51->getTableName('rating_option_vote');$x6b = $x52->select()->distinct('review_id');$x6b->from(array("r" => $x68), array("CO\x55\116T\x28\104I\123\x54\x49\x4eCT\x20\162\056\x72\145v\151ew_\151\x64) \101\123\x20\x63o\x75\x6e\164", 'entity_pk_value'));$x6b->joinleft(array('rs' => $x69), 'rs.review_id=r.review_id', 'rs.store_id');$x6b->joinleft(array('rov' => $x6a), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');$x6b->where("\163\x74\x61tu\x73\137\x69d\x3d\x31\x20a\156d\x20\145n\164\151t\171\137\x69\144\x3d1");$x6b->group(array('r.entity_pk_value', 'rs.store_id'));$x6c = $x52->select();$x6c->from(array("r" => $x68), array("\103OU\116\x54\050\104\x49S\x54\x49N\x43T\x20r\x2e\162e\166\151\x65\x77\137id\051 AS c\157u\x6et", 'entity_pk_value', "\x28SE\x4c\x45\103\124 0\x29 AS\040 s\x74\x6f\x72\145\137i\x64"));$x6c->joinleft(array('rs' => $x69), 'rs.review_id=r.review_id', array());$x6c->joinleft(array('rov' => $x6a), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score');$x6c->where("\163ta\164\x75\x73\137\151\x64=1\x20\x61nd\040\145\156ti\164\x79\137\x69\144\0751");$x6c->group(array('r.entity_pk_value'));$x54 = $x52->select()->union(array($x6b, $x6c));$x54->order(array('entity_pk_value', 'store_id'));$x6d = $x52->fetchAll($x54);$x6e = array();foreach ($x6d as $x6f) {$x6e[$x6f['entity_pk_value']][$x6f['store_id']]['count'] = $x6f['count'];$x6e[$x6f['entity_pk_value']][$x6f['store_id']]['score'] = $x6f['score'];}$x51 = Mage::getSingleton('core/resource');$x52 = $x51->getConnection('core_read');$x70 = $x51->getTableName('catalog_product_entity_media_gallery');$x71 = $x51->getTableName('catalog_product_entity_media_gallery_value');$x54 = $x52->select();$x54->from($x70);$x54->joinleft(array('cpemgv' => $x71), 'cpemgv.value_id = ' . $x70 . '.value_id', array('cpemgv.position', 'cpemgv.disabled'));$x54->where("\x76alu\145\074\x3e\x54\x52I\115\050''\051\040A\x4e\x44\x20(\x73tore\137\x69d=" . $x31 . ' OR  store_id=0)');$x54->order(array('position', 'value_id'));$x72 = $x52->fetchAll($x54);foreach ($x72 as $x73) {$x74[$x73['entity_id']]['src'][] = $x73['value'];$x74[$x73['entity_id']]['disabled'][] = $x73['disabled'];}if ($this->_debug) {echo "<\x62\x72>\074b\162\x3e-\x2d-\055\x2d-\055\055-\x2d--\040I\x4d\101G\x45\123\x20\x2d\055\055----\x2d\055-\x2d\055-\x2d\055-\074\142\162>";$xca($x74);}$x75 = $x51->getTableName("\143\x61\x74alog\x69\156v\145\x6e\x74or\171_s\164\157\x63k\x5f\151t\145\x6d");$x76 = $x51->getTableName("\x63o\162e\x5f\165\x72\154\137\162\145w\x72\x69\x74\x65");$x56 = $x51->getTableName('catalog_category_product');$x77 = $x51->getTableName('catalog_category_product_index');$x78 = $x51->getTableName('catalog_product_super_link');$x79 = $x51->getTableName('catalog_product_link');$x7a = $x51->getTableName('catalog_product_bundle_selection');$x7b = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x31);$x7b->addAttributeToFilter('status', 1);$x7b->addAttributeToFilter('type_id', array("\151\x6e" => "\x63o\x6ef\x69g\x75\x72a\142\154\145"));$x7b->addAttributeToFilter('visibility', array("\156\151\x6e" => 1));$x7b->addAttributeToSelect($x59);$x7b->getSelect()->joinLeft($x78 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)'));$x7b->getSelect()->joinLeft($x75 . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock'));$x7b->getSelect()->joinLeft($x76 . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND options<> "RP" AND url.store_id=' . $x31, array('request_path' => 'request_path'));$x7b->getSelect()->joinLeft($x56 . ' AS categories', 'categories.product_id=e.entity_id');$x7b->getSelect()->joinLeft($x77 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND  categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x31, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));$x7b->getSelect()->group(array('cpsl.parent_id'));$x7c = array();foreach ($x7b as $x7d) {foreach ($xb7("\x2c", $x7d->getChildIds()) as $x7e) {$x7c[$x7e] = $x7d;$x7f[$x7e]['categories_ids'] = $x7d->getCategories_ids();$x7f[$x7e]['parent_id'] = $x7d->getId();$x7f[$x7e]['parent_sku'] = $x7d->getSku();$x7f[$x7e]['parent_request_path'] = $x7d->getRequestPath();}}$this->configurable = $x7c;if ($this->_debug) {echo "<\x62\162>\074\142\162>-\x2d----\055\055\055\x2d\055\055\040\x43\x4f\x4e\106\111\x47\x55\122\101\x42L\x45\123\x20\x2d-\055-\x2d-\x2d\x2d\055-\x2d\x2d\055\055\x2d-\074br>";echo $x7b->getSelect() . '<br><br>';$xca($x7f);}$x7b = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x31);$x7b->addAttributeToFilter('status', 1);$x7b->addAttributeToFilter('type_id', array("i\x6e" => "c\x6f\156\x66\151g\x75r\x61ble"));$x7b->addAttributeToFilter('visibility', array("\156\151n" => 1));$x7b->getSelect()->joinLeft($x78 . ' AS cpsl', 'cpsl.parent_id=e.entity_id ');$x7b->getSelect()->joinLeft($x75 . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(qty)'));$x7b->getSelect()->group(array('cpsl.parent_id'));$x80 = array();foreach ($x7b as $x81) {$x80[$x81->getId()] = $x81->getQty();}$this->configurableQty = $x80;if ($this->_debug) {echo "\x3c\142\x72\076<b\x72>-\055\055-\x2d\x2d\x2d\055\x2d\055-\055\x20C\117\x4eF\x49\x47\x55\122A\102L\105\x53\040\x51T\x59\x20--\055\x2d-\x2d-\x2d\055\x2d-\x2d\055-\055-<\x62\x72\x3e";echo $x7b->getSelect() . '<br><br>';$xca($x80);}$x7b = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x31);$x7b->addAttributeToFilter('status', 1);$x7b->addAttributeToFilter('type_id', array("in" => "\147\x72\157u\160\x65\x64"));$x7b->addAttributeToFilter('visibility', array("\156\151n" => 1));$x7b->addAttributeToSelect($x59);$x7b->getSelect()->joinLeft($x79 . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)'));$x7b->getSelect()->joinLeft($x75 . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock'));$x7b->getSelect()->joinLeft($x76 . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND options<> "RP" AND url.store_id=' . $x31, array('request_path' => 'request_path'));$x7b->getSelect()->joinLeft($x56 . ' AS categories', 'categories.product_id=e.entity_id');$x7b->getSelect()->joinLeft($x77 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND  categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x31, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));$x7b->getSelect()->group(array('cpl.product_id'));$x82 = array();foreach ($x7b as $x7d) {foreach ($xb7(",", $x7d->getChildIds()) as $x7e) {$x82[$x7e] = $x7d;$x83[$x7e]['categories_ids'] = $x7d->getCategories_ids();$x83[$x7e]['parent_id'] = $x7d->getId();$x83[$x7e]['parent_sku'] = $x7d->getSku();$x83[$x7e]['parent_request_path'] = $x7d->getRequestPath();}}$this->grouped = $x82;if ($this->_debug) {echo "\074b\162\x3e\x3c\x62\162\076-\055-\055-\055-\x2d\x2d\x2d-\x2d \x47\122\117U\120\x45\x44 ----\055\x2d\x2d\055\055\055\055-\x2d--\055<\x62r\x3e";echo $x7b->getSelect() . '<br><br>';$xca($x83);}$x7b = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x31);$x7b->addAttributeToFilter('status', 1);$x7b->addAttributeToFilter('type_id', array("\x69\x6e" => "\142\x75n\144l\145"));$x7b->addAttributeToFilter('visibility', array("ni\x6e" => 1));$x7b->addAttributeToSelect($x59);$x7b->getSelect()->joinLeft($x7a . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)'));$x7b->getSelect()->joinLeft($x75 . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock'));$x7b->getSelect()->joinLeft($x76 . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND options<> "RP" AND url.store_id=' . $x31, array('request_path' => 'request_path'));$x7b->getSelect()->joinLeft($x56 . ' AS categories', 'categories.product_id=e.entity_id');$x7b->getSelect()->joinLeft($x77 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND  categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x31, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)'));$x7b->getSelect()->group(array('e.entity_id'));$x84 = array();foreach ($x7b as $x7d) {foreach ($xb7("\054", $x7d->getChildIds()) as $x7e) {$x84[$x7e] = $x7d;$x85[$x7e]['parent_id'] = $x7d->getId();$x85[$x7e]['parent_sku'] = $x7d->getSku();$x85[$x7e]['parent_request_path'] = $x7d->getRequestPath();$x85[$x7e]['categories_ids'] = $x7d->getCategories_ids();}}$this->bundle = $x84;if ($this->_debug) {echo "<\142\x72\x3e\074br\076-\x2d-\055-\055\x2d\x2d\x2d--\x2d\040\102\x55\x4e\x44LE\040\055--\x2d\055\055-\055----\x2d\x2d\x2d\055\x3c\x62r\076";echo $x7b->getSelect() . '<br><br>';$xca($x85);}$x86 = 0;$x7b = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x31);$x7b->addAttributeToFilter('status', 1);$x7b->addAttributeToFilter('type_id', array("\151\156" => $x45));$x7b->addAttributeToFilter('visibility', array("\151\x6e" => $x46));$x87 = $x7b->$xb4();$x88 = $xcb($x87 / $this->_sqlSize) + 1;$x48 = '';while ($x86 < $x88) {$x7b = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($x31);$x7b->addFieldToFilter("sta\164u\163", 1);$x7b->addAttributeToFilter("t\x79pe\137i\x64", array("\x69n" => $x45));$x7b->addAttributeToFilter("vi\163ibi\x6c\151\164y", array("i\156" => $x46));$x7b->addAttributeToSelect($x59);$x89 = array("eq" => "= '\x25\x73'","n\145\161" => "\x21\075\040'\045s'","\x67\164eq" => "\076\x3d\040'\x25s'","\154\x74\145\161" => "\x3c\075\x20'\x25s'","g\x74" => ">\x20'%s'","\x6c\164" => "< '%\x73'","\x6c\x69\x6b\145" => "\154i\x6be\040'\045s'","\x6e\154\x69\153\x65" => "n\157\x74 \154i\x6b\x65 '%\x73'","\156\165l\154" => "\151\x73\x20\156ul\154","n\157tn\165\154\154" => "\x69s\040n\x6ft nu\x6c\154","\x69\x6e" => "in\x20\x28\045\163\x29","\x6e\x69n" => "\156o\x74\040\x69n\x28%s)",);$x8a = '';$x1f = 0;foreach ($x47 as $x5b) {if ($x5b->checked) {if ($x5b->condition == 'in' || $x5b->condition == 'nin') {if ($x5b->code == 'qty' || $x5b->code == 'is_in_stock') {$x8b = $xb7(',', $x5b->value);$x5b->value = "'" . $xbd($x8b, "'\x2c'") . "'";} else {$x5b->value = $xb7(',', $x5b->value);}}switch ($x5b->code) {case 'qty' :if ($x1f > 0)$x8a.=' AND ';$x8a.="\x20\161t\171\040" . $xce($x89[$x5b->condition], $x5b->value);$x1f++;break;case 'is_in_stock' :if ($x1f > 0)$x8a.=' AND ';$x8a.="\040\151s_i\x6e_s\164o\143\x6b\x20" . $xce($x89[$x5b->condition], $x5b->value);$x1f++;break;default :$x7b->addFieldToFilter($x5b->code, array($x5b->condition => $x5b->value));break;}}};$x7b->getSelect()->joinLeft($x75 . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock'));$x7b->getSelect()->joinLeft($x76 . ' AS url', 'url.product_id=e.entity_id AND url.category_id IS NULL AND is_system=1 AND options<> "RP" AND url.store_id=' . $x31, array('request_path' => 'request_path'));$x7b->getSelect()->joinLeft($x56 . ' AS categories', 'categories.product_id=e.entity_id');$x7b->getSelect()->joinLeft($x77 . ' AS categories_index', 'categories_index.category_id=categories.category_id AND  categories_index.product_id=categories.product_id AND categories_index.store_id=' . $x31, array('categories_ids' => 'GROUP_CONCAT(categories_index.category_id)'));if (!empty($x8a))$x7b->getSelect()->where($x8a);$x7b->getSelect()->group(array('e.entity_id'));if ($this->_debug && ($this->_type == '*' || $this->_type == "\163\161\x6c")) {echo "<br\076\074b\x72\x3e--\x2d-\x2d\055\x2d-\055\x2d\055\x2d\x20\x53\121\114\040\055\055\055\055--\055\055\x2d\055\055\055\x2d\x2d-\055\074\142\x72>";print($x7b->getSelect());}$x7b->getSelect()->limit($this->_sqlSize, ($this->_sqlSize * $x86));$x86++;$x8c = 1;$x8d = new MyCustomOptions;$x8e = new MyCustomAttributes;foreach ($x7b as $x2c) {if ($this->_debug) {echo "<\x62r><\x62r>\x2d\055\x2d-----\055\x2d\055\055 \120RO\x44\125\x43\124\x20\133\040S\x4bU \x2d\076 " . $x2c->getSku() . " \174\040I\x44\040-\076 " . $x2c->getId() . "\x5d-\x2d\055\x2d\055---\x2d\x2d-\x2d-\x2d\055<b\162\x3e";echo "cat\145\x67o\x72\151e\x73\040:\x20" . $x2c->getCategoriesIds() . "\054\x20\x52\x6f\157\164\x20\151d\x3a\040" . $x39 . "\074\x62\162>";foreach ($xb7(',', $x2c->getCategoriesIds()) as $x1c => $x50) {echo $x50 . "=\076" . $x2e[$x50]["pat\x68"] . "\074\142r\x3e";}}if (!$xbe('safe_mode')) {$xcd(60);}$x18 = $x3b;foreach ($x4a as $x1c => $x8f) {$x1d = "";$this->option = 0;switch ($x8f['pattern']) {case '{inc}' :$x1d = $x8c;break;case '{final_price}' :$x90 = $this->checkReference($x8f['reference'], $x2c);$x0e = $x90->getFinalPrice();(!isset($x8f['options'][1])) ? $x13 = false : $x13 = $x8f['options'][1];$x1d = $this->applyTax($x0e, $x38, $x90->getTaxClassId(), $x13);(!isset($x8f['options'][0])) ? $x0f = $x35 : $x0f = $x8f['options'][0];$x1d = $this->applyCurrencyRate($x1d, $x0f);$x1d = $xc5($x1d, 2, '.', '');$this->skipOptions(2);break;case '{normal_price}' :$x90 = $this->checkReference($x8f['reference'], $x2c);if ($x90->type_id == 'bundle')$x0e = $x90->price;else {$x0e = $x90->getPrice();}(!isset($x8f['options'][1])) ? $x13 = false : $x13 = $x8f['options'][1];$x1d = $this->applyTax($x0e, $x38, $x90->getTaxClassId(), $x13);(!isset($x8f['options'][0])) ? $x0f = $x35 : $x0f = $x8f['options'][0];$x1d = $this->applyCurrencyRate($x1d, $x0f);$x1d = $xc5($x1d, 2, '.', '');$this->skipOptions(2);break;case '{price}' :$x90 = $this->checkReference($x8f['reference'], $x2c);if ($x90->getSpecialFromDate() && !$x90->getSpecialToDate()) {if ($x90->getSpecialFromDate() <= $xb5("\131\x2d\155-d \110\x3a\x69\072s")) {if ($x90->type_id == "\x62\x75n\x64\x6ce") {if (($x90->price_type || (!$x90->price_type && $x90->special_price < $x90->price)) && $x90->special_price > 0) {if ($x90->price_type)$x0e = $xc5($x90->price * $x90->special_price / 100, 2, ".", "");else {$x0e = $x90->special_price;}} else {$x0e = $x90->price;}} else {($x90->getSpecial_price() && $x90->getSpecial_price() < $x90->getPrice()) ? $x0e = $x90->getSpecialPrice() : $x0e = $x90->getPrice();}} else {if ($x90->type_id == "bu\156dle")$x0e = $x90->price;else {$x0e = $x90->getPrice();}}} elseif ($x90->getSpecialFromDate() && $x90->getSpecialToDate()) {if ($x90->getSpecialFromDate() <= $xb5("\x59\055\x6d\x2d\144\040\x48\072i\x3as") && $xb5("\x59\055\x6d\055\x64\040H\x3a\x69\x3a\x73") < $x90->getSpecialToDate()) {if ($x90->type_id == "\142\165\x6e\144\154\x65") {if (($x90->price_type || (!$x90->price_type && $x90->special_price < $x90->price)) && $x90->special_price > 0) {if ($x90->price_type)$x0e = $xc5($x90->price * $x90->special_price / 100, 2, "\x2e", "");else {$x0e = $x90->special_price;}} else {$x0e = $x90->price;}} else {($x90->getSpecial_price() && $x90->getSpecial_price() < $x90->getPrice()) ? $x0e = $x90->getSpecialPrice() : $x0e = $x90->getPrice();}} else {if ($x90->type_id == "b\165\156d\154\145")$x0e = $x90->price;else {$x0e = $x90->getPrice();}}} else {if ($x90->type_id == "b\165\156d\x6c\x65") {if (($x90->price_type || (!$x90->price_type && $x90->special_price < $x90->price)) && $x90->special_price > 0) {if ($x90->price_type)$x0e = $xc5($x90->price * $x90->special_price / 100, 2, "\056", "");else {$x0e = $x90->special_price;}} else {$x0e = $x90->price;}} else {($x90->getSpecial_price() && $x90->getSpecial_price() < $x90->getPrice()) ? $x0e = $x90->getSpecialPrice() : $x0e = $x90->getPrice();}}(!isset($x8f['options'][1])) ? $x13 = false : $x13 = $x8f['options'][1];$x1d = $this->applyTax($x0e, $x38, $x90->getTaxClassId(), $x13);(!isset($x8f["op\164\151\157\x6es"][0])) ? $x0f = $x35 : $x0f = $x8f["\157\160\x74\151\157\156\163"][0];$x1d = $this->applyCurrencyRate($x1d, $x0f);$x1d = $xc5($x1d, 2, "\x2e", "");$this->skipOptions(2);break;case "{i\163_\x73p\x65ci\x61\154\137\x70\162\x69\143\145\x7d" :$x90 = $this->checkReference($x8f['reference'], $x2c);(!isset($x8f["\157\160\x74\x69\x6f\x6e\x73"][0])) ? $x91 = 1 : $x91 = $x8f["\157\160ti\157\156\x73"][0];(!isset($x8f["op\164\151\157\x6e\x73"][1])) ? $x92 = 0 : $x92 = $x8f["op\164ions"][1];if ($x90->getSpecialFromDate() && !$x90->getSpecialToDate()) {if ($x90->getSpecialFromDate() <= $xb5("\x59\x2d\155\x2d\x64\x20H\x3a\151\072\x73")) {if ($x90->type_id == "b\x75\x6e\144\x6ce")(($x90->price_type || (!$x90->price_type && $x90->special_price < $x90->price)) && $x90->special_price > 0 ) ? $x1d = $x91 : $x1d = $x92;else {($x90->getSpecial_price() && $x90->getSpecial_price() < $x90->getPrice()) ? $x1d = $x91 : $x1d = $x92;}} else {if ($x90->type_id == "\142\165\156d\x6ce")$x1d = $x92;else {$x1d = $x92;}}} elseif ($x90->getSpecialFromDate() && $x90->getSpecialToDate()) {if ($x90->getSpecialFromDate() <= $xb5("\131-\x6d-\144 \110\072i:s") && $xb5("\x59\x2d\x6d\055\x64 \x48:\151\x3a\x73") < $x90->getSpecialToDate()) {if ($x90->type_id == "b\165ndl\145")(($x90->price_type || (!$x90->price_type && $x90->special_price < $x90->price)) && $x90->special_price > 0 ) ? $x1d = $x91 : $x1d = $x92;else {($x90->getSpecial_price() && $x90->getSpecial_price() < $x90->getPrice()) ? $x1d = $x91 : $x1d = $x92;}} else {if ($x90->type_id == "\142\165n\x64le")$x1d = $x92;else {$x1d = $x92;}}} else {if ($x90->type_id == "b\165\156\x64\x6c\x65")(($x90->price_type || (!$x90->price_type && $x90->special_price < $x90->price)) && $x90->special_price > 0 ) ? $x1d = $x91 : $x1d = $x92;else {($x90->getSpecial_price() && $x90->getSpecial_price() < $x90->getPrice()) ? $x1d = $x91 : $x1d = $x92;}}$this->skipOptions(2);break;case "\173s\160\145\143\151\x61\154_\x70\162\151c\145}" :$x90 = $this->checkReference($x8f['reference'], $x2c);$x0e=null;if ($x90->getSpecialFromDate() && !$x90->getSpecialToDate()) {if ($x90->getSpecialFromDate() <= $xb5("Y\055\x6d\055d\x20H\x3a\x69\072s")) {if ($x90->type_id == 'bundle') {if ($x90->price_type)$x0e = $xc5($x90->price * $x90->special_price / 100, 2, "\x2e", "");else {$x0e = $x90->special_price;}} else {$x0e = $x90->getSpecial_price();}} } elseif ($x90->getSpecialFromDate() && $x90->getSpecialToDate()) {if ($x90->getSpecialFromDate() <= $xb5("\131-\x6d\055d\040H\x3a\151:\x73") && $xb5("Y\055m\055d\040\110\072i\x3a\x73") < $x90->getSpecialToDate()) {if ($x90->type_id == 'bundle') {if ($x90->price_type)$x0e = $xc5($x90->price * $x90->special_price / 100, 2, "\x2e", "");else {$x0e = $x90->special_price;}} else {$x0e = $x90->getSpecial_price();}} } else {if ($x90->type_id == 'bundle') {if ($x90->price_type)$x0e = $xc5($x90->price * $x90->special_price / 100, 2, "\x2e", "");else {$x0e = $x90->special_price;}} else {$x0e = $x90->getSpecial_price();}}(!isset($x8f['options'][1])) ? $x13 = false : $x13 = $x8f['options'][1];if ($x0e > 0) {$x1d = $this->applyTax($x0e, $x38, $x90->getTaxClassId(), $x13);(!isset($x8f['options'][0])) ? $x0f = $x35 : $x0f = $x8f['options'][0];$x1d = $this->applyCurrencyRate($x1d, $x0f);$x1d = $xc5($x1d, 2, '.', '');;} else {$x1d = "";}$this->skipOptions(2);break;case "\x7b\x47:S\101L\x45\137P\122I\103\x45}" :$x90 = $this->checkReference($x8f['reference'], $x2c);$x93 = $xcf(' ', 'T', $x90->getSpecialFromDate());$x94 = $xcf(' ', 'T', $x90->getSpecialToDate());if ($x90->type_id == 'bundle' && $x90->special_price) {if ($x90->price_type)$x0e = $xc5($x90->price * $x90->special_price / 100, 2, ".", "");else {$x0e = $x90->special_price;}} else {$x0e = $x90->getSpecial_price();}(!isset($x8f['options'][1])) ? $x13 = false : $x13 = $x8f['options'][1];if ($x0e > 0) {$x0e = $this->applyTax($x0e, $x38, $x90->getTaxClassId(), $x13);(!isset($x8f['options'][0])) ? $x0f = $x35 : $x0f = $x8f['options'][0];$x0e = $this->applyCurrencyRate($x0e, $x0f);$x0e = $xc5($x0e, 2, '.', '');;}if ($x0e > 0)$x1d = "<\147:\x73\141\x6ce\x5f\x70\162ice><\041\133C\104\101\x54A\133" . $x0e . "\x5d\x5d\076</g:\x73\x61\x6ce\137\160\162\151\x63\145>\n";if ($x0e > 0 && $x94)$x1d.="<\x67\072\x73\x61\x6ce\x5fp\162\x69\x63\x65\x5fe\146\x66\145\x63\164\x69\x76\x65\137\x64\141\164\145><\041\x5b\103\x44\101\124\x41\x5b" . $x93 . "Z/" . $x94 . "Z\x5d\135\x3e\x3c/\147:\x73a\x6c\145\137\160\x72\151\143\145_ef\146e\x63tiv\x65\137\144\x61\164e>";$this->skipOptions(2);break;case "\x7b\151ma\x67\x65}" :$x90 = $this->checkReference($x8f['reference'], $x2c);$x95 = $x90->getImage();if (!isset($x8f['options'][0]) || $x8f['options'][0] == 0) {if ($x90->getImage() && $x90->getImage() != 'no_selection') {$x96 = 'catalog/product/' . $x90->getImage();$x1d = $x37 . $xcf('//', '/', $x96);} else {$x1d = $x37 . '/catalog/product/placeholder/' . $x34;}} elseif (isset($x74[$x90->getId()]['src'][$x8f['options'][0] - 1]) && $x8f['options'][0] > 0) {if ($x74[$x90->getId()]['src'][$x8f['options'][0] - 1] != $x95) {$x96 = 'catalog/product/' . $x74[$x90->getId()]['src'][$x8f['options'][0] - 1];$x1d = $x37 . $xcf('//', '/', $x96);}}$this->skipOptions(1);break;case "\x7b\x47:\111M\x41\107\x45\x5f\114\x49N\x4b}" :$x90 = $this->checkReference($x8f['reference'], $x2c);$x95 = $x90->getImage();$x97 = array($x90->getSmall_image(), $x90->getThumbnail());$x98 = '';$x99 = 0;if ($x90->getImage() && $x90->getImage() != 'no_selection') {$x96 = 'catalog/product/' . $x90->getImage();$x1d = $x37 . $xcf('//', '/', $x96);$x98.="<\x67\x3a\151\155\141g\145\x5fl\151\x6e\153\x3e<\041\x5b\103\104AT\x41[" . $x1d . "]\135\x3e<\x2f\x67\072\151\x6d\x61ge\137\154in\x6b\076\n";$x99++;}$x9a = 0;while (isset($x74[$x90->getId()]['src'][$x9a]) && $x99 < 10) {if ($x74[$x90->getId()]['src'][$x9a] != $x95) {if ($xbc($x74[$x90->getId()]['src'][$x9a], $x97) || $x74[$x90->getId()]['disabled'][$x9a] != 1) {$x96 = 'catalog/product/' . $x74[$x90->getId()]['src'][$x9a];$x1d = $x37 . $xcf('//', '/', $x96);$x98.="\x3c\147\072\141d\144iti\157\156\x61\154\137\x69m\x61\147\x65\x5f\x6c\151\156k\076\x3c\041[\x43\104\101\124A\x5b" . $x1d . "\x5d]>\074\057\147\072a\144\144\151t\x69o\x6ea\x6c\x5f\151\x6d\x61g\x65\x5f\154\x69\156\153\076\n";$x99++;}}$x9a++;}$x1d = $x98;break;case "\x7b\165\x72\x6c\175" :$x90 = $this->checkReference($x8f['reference'], $x2c);if ($x90->getRequest_path())$x1d = $x36 . $x2f . $x90->getRequest_path();else {$x1d = $x90->getProductUrl();}break;case "{\x75\162\x69}" :$x90 = $this->checkReference($x8f['reference'], $x2c);if ($x90->getRequest_path())$x1d = $x90->getRequest_path();else {$x1d = $xcf($x36, '', $x90->getProductUrl());}break;case '{is_in_stock}' :$x90 = $this->checkReference($x8f['reference'], $x2c);(!isset($x8f['options'][0])) ? $x91 = 1 : $x91 = $x8f['options'][0];(!isset($x8f['options'][1])) ? $x92 = 0 : $x92 = $x8f['options'][1];($x90->getIs_in_stock() > 0) ? $x1d = $x91 : $x1d = $x92;$this->skipOptions(2);break;case '{stock_status}' :$x90 = $this->checkReference($x8f['reference'], $x2c);($x90->getIs_in_stock() > 0) ? $x1d = Mage::helper('datafeedmanager')->__('in stock') : $x1d = Mage::helper('datafeedmanager')->__('out of stock');break;case '{qty}' :$x90 = $this->checkReference($x8f['reference'], $x2c);(!isset($x8f['options'][0])) ? $x9b = 0 : $x9b = $x8f['options'][0];if ($x2c->type_id == "\x63onfi\147\x75r\x61\142\x6c\145") {$x1d = $x80[$x2c->getId()];$x1d = $xc5($x1d, $x9b, '.', '');} else if ($x8f['reference'] == "con\146\x69\147\165\x72a\142l\145") {$x1d = $xc5($x80[$x90->getId()], $x9b, '.', '');} else {$x1d = $xc5($x90->getQty(), $x9b, '.', '');}$this->skipOptions(1);break;case "{ca\164\x65\147\157\x72i\x65s\x7d" :$x90 = $this->checkReference($x8f['reference'], $x2c);(!isset($x8f['options'][0]) || !$x8f['options'][0] || $x8f['options'][0] == 'INF') ? $x9c = INF : $x9c = $x8f['options'][0];(!isset($x8f['options'][1])) ? $x9d = 1 : $x9d = $x8f['options'][1];(!isset($x8f['options'][2]) || !$x8f['options'][2] || $x8f['options'][2] == 'INF') ? $x9e = INF : $x9e = $x8f['options'][2];$x9f = 0;$x1d = '';$xa0 = '';foreach ($xb7(',', $x90->getCategoriesIds()) as $x1c => $x50) {if (isset($x2e[$x50]) && $x9f < $x9c && ($xbc($x2e[$x50]["\160\x61th"], $x42) || $x42[0] == "*")) {$xa1 = 0;$xa2 = $xb7('/', $x2e[$x50]["\x70\x61\164\150"]);if ($xbc($x39, $xa2)) {$xa3 = "";if ($x9f > 0)$xa0 = "\054";foreach ($xa2 as $xa4) {if (isset($x2e[$xa4])) {if ($x2e[$xa4]['level'] > $x9d && $xa1 < $x9e) {if ($xa1 > 0)$xa3.=' > ';$xa3.=($x2e[$xa4]['name']);$xa1++;}}}$xa5 = "";if (!empty($xa3)) {$x1d.=$xa0 . $xa3 . $xa5;$x9f++;}}}};$this->skipOptions(3);break;case "\x7b\107\072\120\122\117\104UC\124\137\124\131PE}" :$x90 = $this->checkReference($x8f['reference'], $x2c);(!isset($x8f['options'][0]) || !$x8f['options'][0] || $x8f['options'][0] == 'INF') ? $x9c = INF : $x9c = $x8f['options'][0];(!isset($x8f['options'][1])) ? $x9d = 1 : $x9d = $x8f['options'][1];(!isset($x8f['options'][2]) || !$x8f['options'][2] || $x8f['options'][2] == 'INF') ? $x9e = INF : $x9e = $x8f['options'][2];$x9f = 0;$x1d = '';foreach ($xb7(',', $x90->getCategoriesIds()) as $x1c => $x50) {if (isset($x2e[$x50]) && $x9f < $x9c && ($xbc($x2e[$x50]["\x70ath"], $x42) || $x42[0] == "*")) {$xa1 = 0;$xa2 = $xb7('/', $x2e[$x50]["pa\x74h"]);if ($xbc($x39, $xa2)) {$xa3 = '';$xa0 = '<g:product_type><![CDATA[';foreach ($xa2 as $xa4) {if (isset($x2e[$xa4])) {if ($x2e[$xa4]['level'] > $x9d && $xa1 < $x9e) {if ($xa1 > 0)$xa3.=' > ';$xa3.=($x2e[$xa4]['name']);$xa1++;}}}$xa5 = "\135\x5d\x3e<\057\147:\160\162\157\144\165\143\x74\137t\x79\x70\145>\n";if (!empty($xa3)) {$x1d.=$xa0 . $xa3 . $xa5;$x9f++;}}}};$this->skipOptions(3);break;case "{G\072\107\117\117G\x4c\x45\137P\122\117\x44\x55\x43\x54\137\x43ATE\x47O\122\x59\x7d" :(isset($x8f["\x6f\x70\x74\151\x6f\156s"][0])) ? $xa6 = $x8f["o\160\164io\156s"][0] : $xa6 = 0;$x1d = "";$xa7 = 0;$x90 = $this->checkReference($x8f['reference'], $x2c);foreach ($xb7(',', $x90->getCategoriesIds()) as $x1c => $x50) {if (isset($x2e[$x50]["p\x61\164\150"]) && isset($x43[$x2e[$x50]["path"]])) {if ($xa7 == $xa6) {$x1d.="<g\x3a\147o\x6f\x67le_\x70\162\x6fd\x75\x63t_\143\x61\164\x65g\157\x72\171\076<\x21\133\x43DA\124A[" . $x43[$x2e[$x50]["\x70\141\x74\x68"]] . "\x5d\x5d><\x2f\147\x3a\147\157o\147\x6c\145_p\x72o\x64u\x63t\x5f\143\x61\x74e\147o\x72\171\x3e\n";break;}$xa7++;}}$this->skipOptions(1);break;case "\173c\x61t\145g\x6fry_m\x61pp\x69n\x67\175" :(isset($x8f["\157\160\164\x69\157\x6e\163"][0])) ? $xa6 = $x8f["\157\160\164i\157\x6e\x73"][0] : $xa6 = 0;$x1d = "";$x90 = $this->checkReference($x8f['reference'], $x2c);$xa7 = 0;foreach ($xb7(',', $x90->getCategoriesIds()) as $x1c => $x50) {if (isset($x43[$x2e[$x50]["\x70\x61t\x68"]])) {if ($xa7 == $xa6) {$x1d.=$x43[$x2e[$x50]["\x70\x61t\x68"]];break;}$xa7++;}}$this->skipOptions(1);break;case "{\162e\x76\151\x65\x77\137\x63\x6f\x75nt\175":$x90 = $this->checkReference($x8f['reference'], $x2c);$x1d = "";(isset($x8f["op\x74\151\157\x6e\163"][0]) && $x8f["o\x70t\151o\156\163"][0] == "*" ) ? $xa8 = 0 : $xa8 = $x31;if (isset($x6e[$x90->getId()][$xa8]["\143\x6f\x75\156\x74"])) {$xa9 = $x6e[$x90->getId()][$xa8]["c\x6fu\x6e\164"];if (isset($xa9))$x1d.=$xa9;}$this->skipOptions(1);break;case "\x7br\x65v\x69\x65w\137\141\x76e\162ag\145}":$x90 = $this->checkReference($x8f['reference'], $x2c);$x1d = "";(isset($x8f["opti\x6f\x6e\163"][0]) && $x8f["o\x70\164\151o\156\x73"][0] == "*" ) ? $xa8 = 0 : $xa8 = $x31;(!isset($x8f["o\x70\164\151o\156s"][1]) || !$x8f["\157\160\164\x69\157\156\163"][1]) ? $xaa = 5 : $xaa = $x8f["\157\160ti\157\156s"][1];if (isset($x6e[$x90->getId()][$xa8]["s\x63\157\162\145"])) {$xab = $xc5($x6e[$x90->getId()][$xa8]["\x73c\157r\145"] * $xaa / 100, 2, "\056", "");if (isset($xab))$x1d.=$xab;}$this->skipOptions(2);break;case "\x7b\x47\x3a\120R\x4fDUC\x54\137R\x45\x56I\105\x57\x7d" :$x90 = $this->checkReference($x8f['reference'], $x2c);(isset($x8f["\157\160ti\x6fns"][0]) && $x8f["\x6f\160ti\x6f\156s"][0] == "*" ) ? $xa8 = 0 : $xa8 = $x31;(!isset($x8f["o\x70\164i\x6f\x6es"][1]) || !$x8f["\x6f\160\x74\x69\157n\163"][1]) ? $xaa = 5 : $xaa = $x8f["\157p\x74\x69ons"][1];$x1d = "";if (isset($x6e[$x90->getId()][$xa8]["c\x6fu\156\164"])) {$xa9 = $x6e[$x90->getId()][$xa8]["co\165\156t"];$xab = $xc5($x6e[$x90->getId()][$xa8]["sc\157r\x65"] * $xaa / 100, 2, "\x2e", "");}if (isset($xab))$x1d.="\074\147\x3a\160\x72\x6f\x64\165\x63\x74_\x72\145\x76i\145\x77\x5f\141v\x65\x72\x61\147\x65\076<!\x5b\x43\x44\101\124\x41\133" . $xab . "\x5d]>\074\x2f\147:\160\162o\144u\143t_r\x65v\151\145w\x5fa\166\x65\162\141g\x65\076\n";if (isset($xa9) && $xa9 > 0)$x1d.="<g\x3a\160r\x6f\x64u\x63t_re\x76i\x65\x77\x5fco\x75nt>\074\x21\133\103\x44A\x54\x41[" . $xa9 . "\x5d\135>\074\057\147:\160r\x6f\x64\165\143t_\162e\166iew\x5fcou\x6et\076\n";$this->skipOptions(2);break;case "{\107\072\111\x54\x45\115\x5f\107\x52\117\125\120\137\111\104\175" :if (isset($this->configurable[$x2c->getId()])) {$x90 = $this->checkReference('configurable', $x2c);$x1d = "\x3c\147\072\x69\x74\145\x6d\x5fg\162\157\165\160_\x69\144\076<\x21\133\x43\x44\x41TA\133" . $x90->getSku() . "]\x5d>\x3c/\x67\072i\x74\145\x6d_\x67\x72\x6f\x75\x70\137\x69\144\076";}break;default :$x90 = $this->checkReference($x8f['reference'], $x2c);if ($xbc($x8f['name'], $x59)) {if ($xbc($x5a[$x8f['name']], array('select', 'multiselect'))) {eval('$xac =($x90->' . $x8f['methodName'] . ")\073");$xad = $xb7(',', $xac);if ($xb4($xad) > 1) {$x1d = array();foreach ($xad as $xae) {if (isset($x5f[$xae][$x31]))$x1d[] = $x5f[$xae][$x31];else {if (isset($x5f[$xae][0]))$x1d[] = $x5f[$xae][0];}}}else {if (isset($x5f[$xad[0]][$x31])) {$x1d = $x5f[$xad[0]][$x31];} else {if (isset($x5f[$xad[0]][0]))$x1d = $x5f[$xad[0]][0];}}} else {eval('$x1d =($x90->' . $x8f['methodName'] . "\051;");}}if ($xbc(@$x57[$x8f['name']], $x57)) {$x1d = $x57[$x8f['name']];}$x1d = $x8e->_eval($x2c, $x8f, $x1d);if ($xbf($x1d) && !$x1d)continue 3;break;}if ($xb4($x8f['options']) > 0) {foreach ($x8f['options'] as $x1c => $xaf) {if ($x1c >= $this->option) {switch ($x8f['options'][$this->option]) {case "\x73\x75b\163\164\162" :if (isset($x8f['options'][$this->option + 1]) && $xd0($x1d) > $x8f['options'][$this->option + 1]) {$x1d = $xd3($x1d, 0, $x8f['options'][$this->option + 1] - 3);$xb0 = $xd4($x1d, "\040");$x1d = $xd3($x1d, 0, $xb0) . $x8f['options'][$this->option + 2];}$this->skipOptions(3);break;case "\x73t\162i\160_\x74a\147s" :$xb1 = "\040";$x1d = $xc9('!\<br /\>!isU', $xb1, $x1d);$x1d = $xc9('!\<br/\>!isU', $xb1, $x1d);$x1d = $xc9('!\<br>!isU', $xb1, $x1d);$x1d = $xd2($x1d);$this->skipOptions(1);break;case "\x68t\x6dle\x6e\x74\x69t\x69e\x73" :$x1d = $xb9(($x1d));$this->skipOptions(1);break;case "\151\x6d\x70l\157\x64e" :$x1d = ($xc0($x1d)) ? $xbd($x8f['options'][$this->option + 1], $x1d) : $x1d;$this->skipOptions(2);break;case "\x66\154\x6f\141\164" :$x1d = $xc5($x1d, $x8f['options'][$this->option + 1], '.', '');$this->skipOptions(2);break;case "\150\x74\155\x6c_\x65\x6e\164\151\x74\171\x5f\144ec\x6fd\x65" :$x1d = $xba($x1d, ENT_QUOTES, 'UTF-8');$this->skipOptions(1);break;case "\151\156\x6c\151\x6e\x65":$x1d = $xc9('/(\r\n|\n|\r|\r\n)/s', '', $x1d);$this->skipOptions(1);break;case "s\x74\x72\164o\154\x6fw\145\x72":$x1d = $xc3($x1d, "U\x54\x46\070");$this->skipOptions(1);break;case "s\x74\162\x74ou\160p\x65r":$x1d = $xc4($x1d, "\125\x54\106\070");$this->skipOptions(1);break;default :$x8d->option = $this->option;$x1d = $x8d->_eval($x2c, $x8f, $x1d);$this->option = $x8d->option;if ($xbf($x1d) && !$x1d)continue 3;break;}}}}if ($x3d > 1)$x1d = $this->escapeStr($x1d);$x1d = $xcf(array("\x3c", ">"), array("\x7b\x28\x5b", "]\051}"), $x1d);$x18 = $xcf($x8f['fullpattern'], $x1d, $x18);}$x18 = $this->execPhpScript($x18, $x2c, $x3d);if ($x3d == 1 || ($x3d != 1 && !$this->_display))$x18 = $this->encode($x18);if ($x3d == 1)$x18 = $this->xmlEncloseData($x18, $x40);else {if (!$this->_display)$x18 = $this->jsonToStr($x18, $x26, $x27);else {$x18 = $this->jsonToTable(($x18), false);}}$x18 = $xcf(array("\x7b\x28\x5b", "\x5d\051\175"), array("<", "\x3e"), $x18);if ($x42[0] != '*') {$xa1 = 0;foreach ($xb7("\x2c", $x2c->getCategoriesIds()) as $x1c => $x50) {if (isset($x2e[$x50])) {if ($xbc($x2e[$x50]['path'], $x42))$xa1++;}};if ($xa1 < 1)$x18 = '';}if (!empty($x18)) { $x48.=$x18 . "\n";if ($this->_display) {$x49.=$x48;$x48 = '';} else {if ($x8c % 10 == 0) {$x0b->streamWrite($x48);unset($x48);$x48 = '';}}if ($this->_limit && $x8c > $this->_limit)break 2;$x8c++;}}}if (!$this->_display) {$x0b->streamWrite($x48);$x0b->streamWrite($x3c . "\n");} else {$x49.=$x48;$x49.=$x3c . "\n";if ($x3d > 1)$x49.="\x3c\057t\141b\154e\x3e";}unset($x7b);if ($this->_display && !$this->_debug) {($x3d == 1) ? $xb2 = "\x3c\160r\x65\040\156\x61me\075'\143o\144e'\x20\143\154\141\x73s\x3d'xml'\076" . $xb9($x49) . "</p\x72\145>" : $xb2 = $x49;return("\x0d\040\040\040 	\x09<\x68\164m\x6c\076\040\040\x20\040\x09\011\x3che\141d\x3e\012   \x20	\011<\x74\x69tl\x65>" . $this->getFeedName() . "\x3c/\164i\x74\154e\x3e\x0d\012 \040\x20\040\011\011\x3c\154\x69\x6ek\x20\x74yp\x65='t\145xt\x2fcs\163'\040\162\x65\x6c='\x73ty\154\145\163h\145\x65\x74'\040\150\162e\x66='" . $x36 . "s\x6bin\057a\x64m\x69n\150\x74\155\154\x2f\x64\145\146\x61\x75\154\x74\x2f\144ef\141\165l\164/\x64\x61\x74\x61\x66\x65\x65d\155a\x6e\141\147e\162\x2fSynt\141x\x48\151\x67\150\154ig\150\x74\x65r\x2fc\x73\x73\x2fSy\156\x74ax\110i\147h\x6cig\150\x74e\162.cs\163'>\074\x2f\154\151\x6ek>\x0d\x0a\x09\011	\074\x73\x63\162\x69p\164\x20l\x61\156\x67u\141\147\x65='\x6a\141\x76a\x73\143\162\x69\x70\164'\x20\x73\x72c='" . $x36 . "\x73\153\x69\x6e\057\141d\x6d\151\x6eh\164m\x6c\057\144\145\x66\141\165\x6ct/\144\145\146a\x75lt/\144\x61\x74af\145\145\x64\155an\x61ge\162\057\x53\x79\156\x74\x61x\x48i\147\150\154i\147\x68\164e\x72\x2f\152\163\057s\x68C\x6f\162\x65\x2e\152\x73'\076\x3c/\163\143\162i\x70t\076\x0d\x0a	\011\x09<\163c\162\x69p\164\040l\141\x6eg\165a\147e\075'\x6aa\166a\x73c\x72\x69\160\x74'\040\x73\x72\143\x3d'" . $x36 . "\163\153\151\x6e\057a\x64\155i\156\150\x74\155\x6c\x2f\x64\x65\146\x61u\x6c\x74/\144e\x66\141\165\x6ct/\144\141\164a\x66eed\155a\x6e\141\x67\145r\x2f\123\x79\156\x74\x61x\x48\151\147\x68\x6ci\147\x68\164\x65r/js/s\x68B\x72u\163h\130\155l\056j\x73'></\163\x63ri\x70\x74\076\012\x20\x20\x20\x20		\015	\011\x09</h\145\x61\x64\076\x0d\012\x09	\x09<\x62\157\x64y\x3e\x0d		\011" . $xb2 . "\x0d\x09\x09\011\074\163\x63\x72\151p\x74\x20\x6can\147\x75\141g\x65='\152\141\166\141sc\162i\x70\164'>\x0d\x09		\012\011	\011\144p\x2e\x53\x79\x6e\x74\x61x\110\151\x67\150l\x69\147\150\164\145\162\056\110i\147\x68\154\151\x67h\x74A\154\x6c\050'\143o\144\145'\x2cf\x61\154se,\146\x61\154\x73e\054fa\154s\x65\x2c\146al\163\x65\051\073\x0d	\x09\011\074\x2fs\x63\x72ipt>\x0d\x09	\011\074\057\x62o\144y\076\015	\x09	\x3c/h\164m\x6c\x3e");} elseif ($this->_debug) {echo "\074\x62\162>\x3cbr\076\055\x2d\055-\x2d\x2d-\x2d-\055\055-\040\x58\x4d\x4c \117U\124\x50UT\040-\x2d--\055\x2d\055\x2d-\x2d\x2d-\055\055\x2d-\x3c\142\162>";$xb2 = "\074p\162\x65>" . $xbb($x49) . "\074\057\160r\x65\x3e";return $xb2;} else {$x0b->streamClose();$this->setFeedUpdatedAt(Mage::getSingleton('core/date')->gmtDate('Y-m-d H:i:s'));$this->save();}return $this;}}include("app/code/local/Wyomind/Datafeedmanager/myCustomAttributes.php");include("app/code/local/Wyomind/Datafeedmanager/myCustomOptions.php");